namespace Gateway.IQuery.Webide.Result;

public class RuntimeResult
{
    /// <summary>
    /// 进程退出Code
    /// </summary>
    public int ProcessExitCode { get; set; } = 0;

    /// <summary>
    /// 评测状态
    /// </summary>
    public RuntimeStatusEnum Status { get; set; }

    /// <summary>
    /// 评测状态文本
    /// </summary>
    public string StatusMsg { get; set; }

    /// <summary>
    /// 标准输出
    /// </summary>
    public string StdOutput { get; set; } = string.Empty;

    /// <summary>
    /// 错误输出
    /// </summary>
    public string StdError { get; set; } = string.Empty;
    /// <summary>
    /// 时间消耗（单位毫秒）
    /// </summary>
    public string TimeConsumption { get; set; }

    /// <summary>
    /// 内存消耗（单位kb）
    /// </summary>
    public string MemoryConsumption { get; set; }
}